﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BookBuy.TaiKhoan
{
    public partial class DangKy : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void CreateUserWizard1_CreatingUser(object sender, LoginCancelEventArgs e)
        {
            CaptchaControl1.ValidateCaptcha(CAPCHA.Text);

            if (!CaptchaControl1.UserValidated)
            {
                e.Cancel = true;
                lbErrorCapcha.Text = "Wrong Input capcha! Please try again!";
            }
            else
            {
                lbErrorCapcha.Text = "";
                CaptchaControl1.Visible = false;
                CAPCHA.Visible = false;
                lbErrorCapcha.Visible = false;
            }
        }
    }
}